package com.yhb.channel.dao.SXY;

import com.yhb.channel.dao.SXY.SXYCardRecord;
import org.apache.ibatis.annotations.Param;

public interface SXYMapper {
    int insert(
            @Param("cardId") String cardId,
            @Param("bound") int bound,
            @Param("cardType") int cardType,
            @Param("sxyUserId") String sxyUserId,
            @Param("sxyAgreementNo") String sxyAgreementNo,
            @Param("userId") String userId,
            @Param("isBillingCard") int isBillingCard
    );

    int insertWithModel(
            @Param("record") SXYCardRecord sxyCardRecord
    );

    String selectSxyUserIdByYHBUserId(
            @Param("userId") String userId
    );

    SXYCardRecord getRecordByCardId(
            @Param("cardId") String cardId
    );

    int updateByUserId(
            @Param("record") SXYCardRecord sxyCardRecord
    );

    int updateByCardId(
            @Param("record") SXYCardRecord sxyCardRecord
    );
}
